package com.study.spmongodb.wwj.thread2.char07;

import java.util.stream.IntStream;

/**
 * @author study
 * @version 1.0
 * @date 2020/12/8 14:17
 */
public class ImmutableClient {
    public static void main(String[] args) {
        Person person = new Person("Alex", "GuanSu");
        IntStream.range(0, 5).forEach(i -> {
            System.out.println(i);
            new UsePersonThread(person).start();
        });

    }
}
